home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr46 / vfwdk.zip / INSTALL.BAT next >
DOS Batch File  |  1993-06-24  |  657b  |  31 lines

  1. @echo off
  2. echo off
  3. echo : This program will copy the files that make up the Video for Windows SDK
  4. echo : to your hard drive.
  5. echo :
  6. goto parseargs
  7. :nextarg
  8. shift
  9. :parseargs
  10. if "%1" == "" goto usage
  11. if not "%2" == "" goto usage
  12. goto okay
  13. :usage
  14. echo : Usage: %0 path
  15. echo : E.g.:  %0 c:\vfwsdk
  16. goto exit
  17. :okay
  18. vfwsdk -d %1
  19. if errorlevel 1 goto error
  20. echo : Setup succeeded.  Add the following lines to your autoexec.bat:
  21. echo : set INCLUDE=%1\inc;[whatever you used to have]
  22. echo : set LIB=%1\lib;[whatever you used to have]
  23. goto exit
  24.  
  25. :error
  26. echo : !!!
  27. echo : !!! Error copying some files.  Setup incomplete.
  28. echo : !!!
  29.  
  30. :exit
  31.